package mspbots.hubspot.data.core.tickets;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

/**
 * mspbots.data.sync.autotask.model.AtTicketsRe
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/7/17
 */
@Repository
public interface TicketsRepository extends R2dbcRepository<Ticket, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return account enrity
     */
    Mono<Ticket> findByOtherIdAndTenantId(Long otherId, Long tenantId);
}
